package cup.com.icss.dao;

import cup.com.icss.model.TheAnnouncement;
import cup.com.icss.model.TheAnnouncementExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface TheAnnouncementMapper {
    int countByExample(TheAnnouncementExample example);

    int deleteByExample(TheAnnouncementExample example);

    int deleteByPrimaryKey(String id);

    int insert(TheAnnouncement record);

    int insertSelective(TheAnnouncement record);

    List<TheAnnouncement> selectByExample(TheAnnouncementExample example);

    TheAnnouncement selectByPrimaryKey(String id);

    int updateByExampleSelective(@Param("record") TheAnnouncement record, @Param("example") TheAnnouncementExample example);

    int updateByExample(@Param("record") TheAnnouncement record, @Param("example") TheAnnouncementExample example);

    int updateByPrimaryKeySelective(TheAnnouncement record);

    int updateByPrimaryKey(TheAnnouncement record);
    
    List<TheAnnouncement> GetAnnouncementList(@Param("start")int pageNum,@Param("count") int pageSize,@Param("t") TheAnnouncement theAnnouncement);
    
    List<TheAnnouncement> GetAnnouncementListSize(TheAnnouncement theAnnouncement);
}